import request from '@/utils/request'


/**
 * 注册
 * @param {} data 
 * @returns 
 */
export function preRegister (data) {
  return request({
    url: '/basic-api/auth/preRegister',
    method: 'POST',
    data
  })
}
/**
 * 登录
 */
export function preLogin (data) {
  return request({
    url: '/basic-api/auth/preLogin',
    method: 'POST',
    headers: {
      isToken: false,
      // repeatSubmit: false
    },
    data
  })
}